package com.tuling.signalling.streamer;

import com.tuling.signalling.streamer.handler.StreamerHandler;
import com.tuling.signalling.websocket.WebsocketServer;

public class StreamerServer {
    public void start() {
        WebsocketServer streamerServer = new WebsocketServer(18888, StreamerServer.class);
        streamerServer.setLogOpen(true);
        streamerServer.addLastChannel("streamerHandler", () -> new StreamerHandler());
        streamerServer.start();
    }
}
